//============================================================================
// Name        : 3_13.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <vector>
using namespace std;
int main() {
	vector<int> ivec;
	int ival;
	cout << "Enter vector numbers:" << endl;
	while(cin >> ival)
	{
		ivec.push_back(ival);
	}
	if(ivec.size() == 0)
	{
		cout << "You didnot input anything!" << endl;
	}
	for(vector<int>::size_type cnt = 0; cnt < ivec.size()-1; cnt += 2)
	{
		cout << ivec[cnt] + ivec[cnt+1] << "\t";
	}
	return 0;
}
